package com.yanqu.road.entity.activity.assistantcostumemall;

import com.yanqu.road.entity.activity.ActivityConfig;

import java.util.Map;

/**
 * @author ：zfr
 * @date ：2022/3/23 11:01
 */
public class AssistantCostumeMallConfig {
    private int refreshTime;   //刷新时间间隔，单位为天
    private String refreshCount;  //每次刷新展示的数量。展示数量大于商品数量时，展示全部商品
    private int refreshMode;   //刷新模式。1：以套装为单位刷新 2：以单件服装为单位刷新
    private int point;         //兑换商店道具id

    public int getAssistantRefreshTime() {
        return refreshTime;
    }

    public String getAssistantRefreshCount() {
        return refreshCount;
    }

    public int getAssistantRefreshMode() {
        return refreshMode;
    }

    public int getAssistantPoint() {
        return point;
    }

    public AssistantCostumeMallConfig(Map<String, ActivityConfig> activityConfigMap) {
        this.refreshTime = activityConfigMap.get("ASSISTANT_REFRESH_TIME").getIntValue();
        this.refreshCount = activityConfigMap.get("ASSISTANT_REFRESH_COUNT").getValue();
        this.refreshMode = activityConfigMap.get("ASSISTANT_REFRESH_MODE").getIntValue();
        this.point = activityConfigMap.get("ASSISTANT_POINT").getIntValue();
    }
}
